<?php use_stylesheet('main.css') ?>
<?php use_helper('Text');

echo sfConfig::get('uploads'); ?>

 
<?php foreach ($blog_categories as $i => $articleresult): ?>


<h2><?php echo link_to($articleresult->getTitle(), 'show_articles', $articleresult) ?> </h2><small>Publié le <?php echo $articleresult->getDateTimeObject('publied_at')->format('d/m/Y') ?> par <?php echo $articleresult->getSfGuardUser()->getUserName() ?> dans <?php if(isset($category)) { echo link_to($category, 'categories', $category);} else { ?><a  href=" <?php echo url_for('categories', $articleresult->getBlogCategory()) ; ?>"> <?php echo $articleresult->getBlogCategory() ; ?>  </a>  <?php } ?> </small>


<p> <?php echo simple_format_text(parseto(substr($articleresult->getRawValue()->getContent(), 0, 300))); ?>  </p>


<?php endforeach; ?>



